package com.shunli.cterminal.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.examples.core.tool.utils.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * <p>
 * 流量规则 策略参数实体 用于各规则之间传递参数
 * </p>
 *
 * @author daodao
 * @since 2025-04-25 15:35
 */
@Data
public class TrafficPolicyStrategyDTO implements Serializable {
    private static final long serialVersionUID = 6822921098244455076L;
    /**
     * 推广渠道编码
     */
    @Schema(description = "推广渠道编码")
    String promotionCode;
    /**
     * 销售价格
     */
    @Schema(description = "销售价格")
    private BigDecimal realAmount;
    /**
     * 时间点
     */
    @Schema(description = "时间点")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime createOrderTime;
    /**
     * 商品id
     */
    @Schema(description = "商品id")
    private String goodsId;
    /**
     * 媒体
     */
    @Schema(description = "媒体")
    private String platform;

}
